const Model = {
  name: 'report.accounting_pdf_reports.report_financial',
  configs: {
    wizard: {
      name: 'accounting.report',
      context:
        "{'default_account_report_id':ref('accounting_pdf_reports.account_financial_report_profitandloss0')}",

      fields_default: {
        account_report_id: null,
        target_move: null,
        debit_credit: null,
        date_from: null,
        date_to: null,
        company_id: null
      },
      formItems: [
        {
          type: 'select',
          name: 'account_report_id',
          label: '报表类型'
        },
        { type: 'select2', name: 'target_move', label: '会计分录' },
        { type: 'checkbox', name: 'debit_credit', label: '显示借贷' },
        { type: 'date', name: 'date_from', label: '开始时间' },
        { type: 'date', name: 'date_to', label: '结束时间' }
      ]
    }
  },

  extend: BaseClass => {
    class ModelClass extends BaseClass {
      global_domain(domain = {}) {
        return super.global_domain(domain)
      }
    }
    return ModelClass
  }
}

export default Model
